package org.yscz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.yscz.entity.Role;

/**
 * @program: pe
 * @description: 数据层 角色表
 * @author: muqs
 * @create: 2021-08-19 21:30
 **/
public interface RoleMapper extends BaseMapper<Role> {

    /**
     * @Description: 根据用户ID查询角色信息
     * @Author: Muqs
     * @Param: userId
     * @return: Role
     * @Date: 2021/8/20
     */
    Role querRoleByUserId(@Param(value = "userId") Long userId);
}
